package org.huzhp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Description: java类作用描述
 * @Author: huzp
 * @CreateDate: 2020/4/8 13:08
 * @Version: 1.0
 */
@Controller
// 必须配置
@SessionAttributes("authorizationRequest")
public class GrantController {

    @RequestMapping("/oauth/confirm_access")
    public ModelAndView getAccessConfirmation(Map<String, Object> model, HttpServletRequest request) throws Exception {
//        AuthorizationRequest authorizationRequest = (AuthorizationRequest) model.get("authorizationRequest");
        model.containsKey("_csrf");
        ModelAndView view = new ModelAndView();
        view.setViewName("grant");
        return view;
    }
}
